package test;

import org.dom4j.Document;
import org.hardy.xmlhelper.dom4j.XMLObject;


public class TwoInface{
	
	static class Person{
		String name;
		int age;
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public int getAge() {
			return age;
		}
		public void setAge(int age) {
			this.age = age;
		}
		@Override
		public String toString() {
			return "Person [name=" + name + ", age=" + age + "]";
		}
		
		
	}
	
	public static void main(String[] args) {
		Person p = new Person();
		p.name ="ssss";
		p.age = 100;
		XMLObject xo = new XMLObject();
		Document doc = xo.xmlObject(p, "yyyy-MM-dd HH:mm:ss");
		System.out.println(doc.asXML());
	}
}
